/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ASAExpr;

import exception.DivisionByZeroException;
import exception.VariableNonDeclareeException;

/**
 *
 * @author FM & KB
 */
public class ASAExprSuperioriteEgalite extends ASAExprComparaison{
    
    public ASAExprSuperioriteEgalite(ASAExpr e1,ASAExpr e2){
        super(e1,e2);
    }
    
    public int evalue() throws VariableNonDeclareeException, DivisionByZeroException{
        return ((partieGauche.evalue() >= partieDroite.evalue())?1:0);
    }
    
    public String getLabelExplorateur() {
        return "SUPERIORITE_EGALITE";
    }
}
